﻿using Microsoft.Hadoop.WebHDFS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HDInsightStudio
{
    public class FileItem : TreeItem
    {
        public string Path { get; private set; }

        public long Size { get; private set; }

        private WebHDFSClient hdfs;

        public FileItem(TreeItem parent, string path, long size, WebHDFSClient hdfs)
            : base(parent)
        {
            Path = path;
            this.hdfs = hdfs;
        }

        public override string Name
        {
            get { return Path == null ? null : Path.Split('/').Last(); }
        }

    }
}
